<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<meta charset="utf-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
</head>
<body>
{include file="common@common/header"}
	<div class="">
		<div class="">
			<div class="col-md-2 col-md-offset-1">
				{include file="common/leftPanel"}
			</div>
			<div class="col-md-5">
				<form class="form-horizontal" action="" method="POST">
					<div class="form-group has-feedback">
						<label for="teacherName" class="col-md-2 control-label">教师名称：</label>
						<div class="col-md-8">
							<input type="text" name="teacherName" class="form-control" id="teacherName" placeholder="请输入教师名称" maxlength="30" onblur="checkName(this.value)">
							<span id="nameSuccess" class="glyphicon glyphicon-ok form-control-feedback text-success hidden"></span>
							<span id="nameDanger" class="glyphicon glyphicon-remove form-control-feedback text-danger hidden"></span>
							<span id="nameError" class="text-danger hidden">您设置的教师名称过长或其中包含空格不合法！</span>
							<span id="nameRepeat" class="text-danger hidden">该名称已存在！</span>
						</div>
					</div>
					<div class="form-group has-feedback">
						<label for="teacherPassword" class="col-md-2 control-label">教师密码：</label>
						<div class="col-md-8">
							<input type="password" name="teacherPassword" class="form-control" id="teacherPassword" placeholder="请输入教师密码" maxlength="25" onblur="checkPassword(this.value)">
							<span id="passwordSuccess" class="glyphicon glyphicon-ok form-control-feedback text-success hidden"></span>
							<span id="passwordDanger" class="glyphicon glyphicon-remove form-control-feedback text-danger hidden"></span>
							<span id="passwordError" class="text-danger hidden">密码必须包含数字、英文字符和特殊字符，且长度需在8位到25位之间！</span>
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-offset-2 col-md-6">
							<button type="submit" onclick="return checkTeacher();" class="btn btn-primary">添加</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
</body>
</html>